﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;

using Emgu.CV;
using Emgu.CV.UI;
using Emgu.CV.CvEnum;
using Emgu.CV.Structure;
using Emgu.CV.VideoSurveillance;

namespace VideoSurveilance
{
    // NewFrame delegate
    public delegate void CameraEventHandler(object sender, CameraEventArgs e);

    public class CameraEventArgs : EventArgs
    {
        private Image<Bgr, Byte> bmp;

        // Constructor
        public CameraEventArgs(Image<Bgr, Byte> bmp)
        {
            this.bmp = bmp;
        }

        // Bitmap property
        public Image<Bgr, Byte> Bitmap
        {
            get { return bmp; }
        }
    }
}
